package cn.sh.yhk.service.basic.impl;

import cn.sh.yhk.mapper.basic.STaskScheduleJobMapper;
import cn.sh.yhk.model.basic.STaskScheduleJob;
import cn.sh.yhk.model.basic.STaskScheduleJobExample;
import cn.sh.yhk.service.basic.JobConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: adminyhk
 * @Date: 2018/9/21 14:08
 * @Description:
 */
@Service
public class JobConfigServiceImpl implements JobConfigService {

    @Resource
    STaskScheduleJobMapper sTaskScheduleJobMapper;

    @Override
    public List<STaskScheduleJob> getAllByStatus(int status) {
        STaskScheduleJobExample ex = new STaskScheduleJobExample();
        ex.createCriteria().andStatusEqualTo(1);
        return sTaskScheduleJobMapper.selectByExample(ex);
    }


}
